<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>opennars: nars.entity.TermLink.TermLink</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">opennars
   &#160;<span id="projectnumber">1.5.5</span>
   </div>
   <div id="projectbrief">1.5-ish</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="../../namespaces.html"><span>Packages</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('d4/d8b/classnars_1_1entity_1_1TermLink_a7efe1a85c0739a0fd0dc3f03dbd679a9.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="contents">
<a class="anchor" id="a7efe1a85c0739a0fd0dc3f03dbd679a9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">nars.entity.TermLink.TermLink </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d8/db8/classnars_1_1language_1_1Term.html">Term</a>&#160;</td>
          <td class="paramname"><em>t</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d4/d8b/classnars_1_1entity_1_1TermLink.html">TermLink</a>&#160;</td>
          <td class="paramname"><em>template</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue.html">BudgetValue</a>&#160;</td>
          <td class="paramname"><em>v</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor to make actual <a class="el" href="../../d4/d8b/classnars_1_1entity_1_1TermLink.html" title="A link between a compound term and a component term. ">TermLink</a> from a template. </p>
<p>called in <a class="el" href="../../d4/d22/classnars_1_1entity_1_1Concept_a3f3f026223e459e041fbdd8c0f49f7c6.html#a3f3f026223e459e041fbdd8c0f49f7c6" title="Recursively build TermLinks between a compound and its components. ">Concept.buildTermLinks</a> only </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">t</td><td>Target Term </td></tr>
    <tr><td class="paramname">template</td><td><a class="el" href="../../d4/d8b/classnars_1_1entity_1_1TermLink.html" title="A link between a compound term and a component term. ">TermLink</a> template previously prepared </td></tr>
    <tr><td class="paramname">v</td><td>Budget value of the link </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="../../db/daa/TermLink_8java_source.html#l00104">104</a> of file <a class="el" href="../../db/daa/TermLink_8java_source.html">TermLink.java</a>.</p>

<p>References <a class="el" href="../../d8/df2/Term_8java_source.html#l00068">nars.language.Term.getName()</a>, <a class="el" href="../../db/daa/TermLink_8java_source.html#l00143">nars.entity.TermLink.getTarget()</a>, and <a class="el" href="../../db/daa/TermLink_8java_source.html#l00118">nars.entity.TermLink.setKey()</a>.</p>
<div class="fragment"><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;                                                              {</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        super(t.getName(), v);</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        <a class="code" href="../../d4/d8b/classnars_1_1entity_1_1TermLink_a63d15c2000a8634cf4d31e2ede492251.html#a63d15c2000a8634cf4d31e2ede492251">target</a> = t;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        <a class="code" href="../../d4/d8b/classnars_1_1entity_1_1TermLink_a83725fe12a973c0181d3143ed4622f48.html#a83725fe12a973c0181d3143ed4622f48">type</a> = <span class="keyword">template</span>.getType();</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;        <span class="keywordflow">if</span> (<span class="keyword">template</span>.<a class="code" href="../../d4/d8b/classnars_1_1entity_1_1TermLink_a133e3243292f9daacaa8443acef6b185.html#a133e3243292f9daacaa8443acef6b185">getTarget</a>().equals(t)) {</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;            <a class="code" href="../../d4/d8b/classnars_1_1entity_1_1TermLink_a83725fe12a973c0181d3143ed4622f48.html#a83725fe12a973c0181d3143ed4622f48">type</a>--;     <span class="comment">// point to component</span></div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        }</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        <a class="code" href="../../d4/d8b/classnars_1_1entity_1_1TermLink_a2356ada181399f3c6db60308dbb523f7.html#a2356ada181399f3c6db60308dbb523f7">index</a> = <span class="keyword">template</span>.getIndices();</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        <a class="code" href="../../d4/d8b/classnars_1_1entity_1_1TermLink_ad19e927a3e2e339682081d8e462fe73b.html#ad19e927a3e2e339682081d8e462fe73b">setKey</a>();</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    }</div>
<div class="ttc" id="classnars_1_1entity_1_1TermLink_a133e3243292f9daacaa8443acef6b185_html_a133e3243292f9daacaa8443acef6b185"><div class="ttname"><a href="../../d4/d8b/classnars_1_1entity_1_1TermLink_a133e3243292f9daacaa8443acef6b185.html#a133e3243292f9daacaa8443acef6b185">nars.entity.TermLink.getTarget</a></div><div class="ttdeci">Term getTarget()</div><div class="ttdoc">Get the target of the link. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/daa/TermLink_8java_source.html#l00143">TermLink.java:143</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1TermLink_a63d15c2000a8634cf4d31e2ede492251_html_a63d15c2000a8634cf4d31e2ede492251"><div class="ttname"><a href="../../d4/d8b/classnars_1_1entity_1_1TermLink_a63d15c2000a8634cf4d31e2ede492251.html#a63d15c2000a8634cf4d31e2ede492251">nars.entity.TermLink.target</a></div><div class="ttdeci">Term target</div><div class="ttdoc">The linked Term. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/daa/TermLink_8java_source.html#l00056">TermLink.java:56</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1TermLink_a2356ada181399f3c6db60308dbb523f7_html_a2356ada181399f3c6db60308dbb523f7"><div class="ttname"><a href="../../d4/d8b/classnars_1_1entity_1_1TermLink_a2356ada181399f3c6db60308dbb523f7.html#a2356ada181399f3c6db60308dbb523f7">nars.entity.TermLink.index</a></div><div class="ttdeci">short[] index</div><div class="ttdoc">The index of the component in the component list of the compound, may have up to 4 levels...</div><div class="ttdef"><b>Definition:</b> <a href="../../db/daa/TermLink_8java_source.html#l00060">TermLink.java:60</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1TermLink_a83725fe12a973c0181d3143ed4622f48_html_a83725fe12a973c0181d3143ed4622f48"><div class="ttname"><a href="../../d4/d8b/classnars_1_1entity_1_1TermLink_a83725fe12a973c0181d3143ed4622f48.html#a83725fe12a973c0181d3143ed4622f48">nars.entity.TermLink.type</a></div><div class="ttdeci">short type</div><div class="ttdoc">The type of link, one of the above. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/daa/TermLink_8java_source.html#l00058">TermLink.java:58</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1TermLink_ad19e927a3e2e339682081d8e462fe73b_html_ad19e927a3e2e339682081d8e462fe73b"><div class="ttname"><a href="../../d4/d8b/classnars_1_1entity_1_1TermLink_ad19e927a3e2e339682081d8e462fe73b.html#ad19e927a3e2e339682081d8e462fe73b">nars.entity.TermLink.setKey</a></div><div class="ttdeci">void setKey()</div><div class="ttdoc">Set the key of the link. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/daa/TermLink_8java_source.html#l00118">TermLink.java:118</a></div></div>
</div><!-- fragment -->
<p><div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="../../closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d4/d8b/classnars_1_1entity_1_1TermLink_a7efe1a85c0739a0fd0dc3f03dbd679a9_a7efe1a85c0739a0fd0dc3f03dbd679a9_cgraph.svg" width="452" height="155"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../d7/d81/namespacenars.html">nars</a></li><li class="navelem"><a class="el" href="../../db/dec/namespacenars_1_1entity.html">entity</a></li><li class="navelem"><a class="el" href="../../d4/d8b/classnars_1_1entity_1_1TermLink.html">TermLink</a></li>
    <li class="footer">Generated on Sun Jan 10 2016 18:03:59 for opennars by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
  </ul>
</div>
</body>
</html>
